package course.service;

import course.pojo.entity.Admin;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 20:10
 */
public interface AdminService {
    Admin getById(Integer aid);

    /**
     * @param admin
     * @return 返回自增主键
     */
    int addAdmin(Admin admin);

    int updateById(Admin admin);

    int deleteById(Integer aid);

    List<Admin> getList();

    /**/

    /**
     * 登录
     */
    Admin login(Admin admin);

    Admin getByAuser(String auser);
}
